import { postRequestData, postRequestJson, postRequestList } from '../utils/request'
export const getCountArrivalTrackingReq = <T>(data?: any): Promise<IResponsePost<T>> =>
  postRequestJson(`/api/sop/sop/trackWorkbench/countArrivalTracking`, data)
export const getAnnualDeliveryRateReq = <T>(data?: any): Promise<IResponsePost<T>> =>
  postRequestJson(`/api/sop/sop/trackWorkbench/getAnnualDeliveryRate`, data)
export const saveScheduleExtraReq = <T>(data?: any): Promise<IResponsePost<T>> =>
  postRequestJson(`/api/sop/sop/trackWorkbench/saveScheduleExtra`, data)
export const scheduleDefendOverviewReq = <T>(data?: any): Promise<IResponsePost<T>> =>
  postRequestJson(`/api/sop/sop/dashboards/scheduleDefendOverview`, data)
export const countProduceScheduleExpReq = <T>(data?: any): Promise<IResponsePost<T>> =>
  postRequestJson(`/api/sop/sop/dashboards/countProduceScheduleExp`, data)
export const getYearTimeAchieveDashboardReq = <T>(data?: any): Promise<IResponseData<T>> =>
  postRequestData(`/api/sop/sop/trackWorkbench/getYearTimeAchieveDashboard`, data)
export const getDashboardArrivalTrackingV2 = <T>(data?: any): Promise<IResponseList<T>> =>
  postRequestList(`/api/sop/sop/trackWorkbench/arrivalTrackingV2`, data)
export const trackWorkbenchConfirmTime = <T>(data?: any): Promise<IResponsePost<T>> =>
  postRequestJson(`/api/sop/sop/trackWorkbench/confirmTime`, data)
export const trackWorkbenchHasRead = <T>(data?: any): Promise<IResponsePost<T>> =>
  postRequestJson(`/api/sop/sop/dashboards/readProduceScheduleExp`, data)
export const trackWorkbenchTodo = <T>(data?: any): Promise<IResponsePost<T>> =>
  postRequestJson(`/api/sop/sop/trackWorkbench/trackWorkbenchTodo`, data)
